﻿using ServerFrame;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gameserver
{
    /// <summary>
    /// 消息处理接口，处理HanderCenter中的OnMessageRecive()方法，提供函数体让子模块重写
    /// </summary>
    public interface IMessageHandler
    {
        void OnClientConnected(Mytoken token);

        void OnClientClose(Mytoken token, string error);

        void OnMessageRecive(Mytoken token, TransModel model);

    }
}
